/*
package com.lz.url;

import it.sauronsoftware.jave.Encoder;
import it.sauronsoftware.jave.MultimediaInfo;

import java.io.File;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URI;
import java.net.URL;

public class App {
    public static void main(String[] args) throws Exception {
        URL url = new URL("http://ssl.argi-cloud.com/resources/17650cd8-2c01-4f88-8a15-d37b547123bc.mp4");
        HttpURLConnection urlcon = (HttpURLConnection) url.openConnection();
        InputStream inputStream = urlcon.getInputStream();
        // 根据响应获取文件大小
        int fileLength = urlcon.getContentLength() / 1024 / 1024;
        URI uri = new URI("http://ssl.argi-cloud.com/resources/17650cd8-2c01-4f88-8a15-d37b547123bc.mp4");
        File file = new File("C:\\Users\\li\\Documents\\Tencent Files\\568300908\\FileRecv\\006企业文化.mp4");
        String s = ReadVideoTime(file);
        System.out.println(fileLength);

    }

    private static String ReadVideoTime(File source) {
        Encoder encoder = new Encoder();
        String length = "";
        try {
            MultimediaInfo m = encoder.getInfo(source);
            long ls = m.getDuration() / 1000;
            int hour = (int) (ls / 3600);
            int minute = (int) (ls % 3600) / 60;
            int second = (int) (ls - hour * 3600 - minute * 60);
            length = hour + "'" + minute + "''" + second + "'''";
        } catch (Exception e) {
            e.printStackTrace();
        }
        return length;
    }
}
*/
